<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">

<h1>Inqueries of Your shop (In 2 Weeks Time)</h1>
<table width="1100" border="1" cellspacing="0" cellpadding="10"  style="font-size:12px;" >
  <tr>
    <th scope="col">Submit Date</th>
    <th scope="col">Staff</th>
    <th scope="col">Product Inquery</th>
    <th scope="col"  width="150" >Feedback of HQ</th>
    <th scope="col">Feedback Date</th>
    <th scope="col">Comment of HQ</th>
  </tr>
<?php foreach($this->inqYourShop as $ky => $vy){?>  
  <tr>
    <td><?php echo $vy['date_inq']?></td>
    <td><?php echo  $vy['id_staff']?></td>
    <td><?php echo  $vy['content_inq']?></td>
    <td><?php 
	
	switch($vy['feedback_au']){
		case(1):{echo 'Update In 7 Days';break;}
		case(7):{echo 'Requirement Not Clear';break;}
		case(9):{echo 'Will Not Get';break;}
		case(2):{echo 'Ship in 14 Days';break;}
		case(4):{echo 'Already Shipped';break;}
		case(6):{echo 'Ordered,Already Shipped';break;}
		case(99):{echo 'Cancel / It is an error';break;}
		}
?></td>
    <td><?php echo  $vy['feedback_date_au']?></td>
    <td><?php echo  $vy['comment_au']?>
    	<?php echo  (trim($vy['eta_date'])== '')?'':'ETA:'.$vy['eta_date'];?>
    </td>
  </tr>
<?php }?>  
</table>
<h1>
  All Inqueries In 6 Weeks
</h1>

<table width="1100" border="1" cellspacing="0" cellpadding="10" style="font-size:12px;">
  <tr>
    <th scope="col">Submit Date</th>
    <th scope="col">Shop</th>
    <th scope="col">Product Inquery</th>
    <th scope="col"  width="150"  >Feedback of HQ</th>
    <th scope="col">Feedback Date</th>
    <th scope="col">Comment of HQ</th>
  </tr>
<?php foreach($this->inqAll as $ka => $va){?>  
  <tr>
    <td><?php echo $va['date_inq']?></td>
    <td><?php echo  $va['shop_head']?></td>
    <td><?php echo  $va['content_inq']?></td>
    <td><?php
    	switch($va['feedback_au']){
			
		case(1):{echo 'Update In 7 Days';break;}
		case(7):{echo 'Requirement Not Clear';break;}
		case(9):{echo 'Will Not Get';break;}
		case(2):{echo 'Ship in 14 Days';break;}
		case(4):{echo 'Already Shipped';break;}
		case(6):{echo 'Ordered,Already Shipped';break;}
		case(99):{echo 'Cancel / It is an error';break;}
		}
	
	?></td>
    <td><?php echo  $va['feedback_date_au']?></td>
    <td><?php echo  $va['comment_au']?>
    	<?php echo  (trim($va['eta_date'])== '')?'':'ETA:'.$va['eta_date'];?>
    </td>
  </tr>
<?php }?> 
</table>
</body>
</html>
